package com.cjl.learn.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * Created by Enzo Cotter on 2019-07-07.
 */
public class MyApplicationListener implements ApplicationListener {

    public MyApplicationListener() {
        super();
        System.out.println("MyApplicationListener构造函数被调用。。。");
    }

    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("MyApplicationListener的onApplicationEvent方法被调用，event：" + event.getClass().getSimpleName());
    }
}
